<template>
    <div class="goodsdesc-container">
        <h3>{{goodsdesc.title}}</h3>
        <hr>
        <div v-html="goodsdesc.zhaiyao" class="content"></div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            goodsdesc: [],
            id: this.$route.params.id
        }
    },
    methods: {
        getGoodsDesc(){
            this.$http.get("output/goodslist/goodsinfo/"+this.id+"/index.php").then(result => {
                this.goodsdesc=result.body
            })
        }
    },
    created() {
        this.getGoodsDesc()
    }
}
</script>

<style lang="scss">
.goodsdesc-container{
    padding: 4px;
    h3{
    font-size: 16px;
    color: #226aff;
    text-align: center;
    margin: 15px 0;
    }
    .content{
        line-height: 30px;
        img{
            width: 100%;
        }
    }
}
</style>